###allow_module_level=True跳过整个模块


import pytest

a = 1

if a != 3:
    pytest.skip("a不等于3就跳过整个文件模块", allow_module_level=True)


@pytest.fixture()
def demo_fixture(request):
    test_input = request.param
    if test_input == 3:
        pytest.skip("传入的值等于3就跳过")


@pytest.mark.parametrize("demo_fixture", [1, 3], indirect=True)
def test_the_unknown1(demo_fixture):
    ...


def test_the_unknown2():
    ...


def test_the_unknown3():
    ...